<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="path" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
  <head>
    <title>登录</title>
    <meta name="content-type" content="text/html; charset=utf-8">
   <link rel="stylesheet" href="${path }/static/bootstrap.min.css" />
<script src="${path }/static/jquery.min.js"></script>
<script src="${path }/static/js/bootstrap.min.js"></script>
  </head>  
  <body>
      <div class="container">
	     <form class="form-horizontal" role="form" action="<c:url value="/user/login"/>" method="post" style="margin-left:300px;margin-top:80px">
		     <fieldset>
			    <legend>用户登录</legend>
				<div class="form-group">
				   <label class="col-sm-1 control-label" for="username">账号</label>
				   <div class="col-sm-3">
				      <input id="username" type="text" name="username" placeholder="用户名"
					  class="form-control"/>
					  <p class="help-block">请输入您要输入的账号</p>
				   </div>
				</div>
				<div class="form-group">
				   <label class="col-sm-1 control-label" for="password">密码</label>
				
				   <div class="col-sm-3">
				      <input id="username" type="password" name="password" placeholder="请输入密码"
					  class="form-control"/>
					  <p class="help-block">请输入您的密码</p>
				   </div>
				</div>
			 </fieldset>
			 <div class="form-group">  
             <div class="col-sm-offset-1 col-sm-10">  
	            <input type="submit" class="btn btn-primary" value="登录"/>  
	            <a href="<c:url value="/register"/>" class="btn btn-primary" style="margin-left:50px;">注册</a>
            </div>  
        </div>
	    <font color="red">${msg }</font>
		 </form>
	  </div>
  </body>
</html>
